#ifndef __ENCODER_H__
#define __ENCODER_H__
#include "stm32f10x.h"

#define COUNTER_RESET 0x7fff;
#define Encoder_Timer TIM4

#define Encoder_Start() Encoder_Timer->CNT = COUNTER_RESET
#define SOLID_FILTER_LENGTH 20

void Encoder_Configuration(void);
int16_t Encoder_Get_CNT(void);
int16_t Encoder_LBF_Filter(void);
int16_t Encoder_Solid_Filter(void);
#endif
